package com.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.pojo.PassengerOrder;
import com.pojo.vo.vo_PassengerOrder;

public interface passengerOrderDao {
	public int insertOnePassengerOrder(@Param("order")PassengerOrder order);//发布一条拼车消息
	public List<PassengerOrder> getAllpassengerOrder();
	public List<PassengerOrder> getAllPassengerOrder(@Param("thisUsers_id")int thisUsers_id,@Param("users_id")int users_id);//得到所有拼车信息
	public PassengerOrder getPassengerOrderingByUsersId(@Param("users_id")int users_id);
	public PassengerOrder getOnePassengerOrderingByOrder(@Param("order")PassengerOrder passengerOrder);//通过插入的order查找返回该order
	public PassengerOrder getPassengerOrderingByPassengerOrderId(@Param("passengerOrder_id")int passengerOrder_id);
	public int setPassengerOrderEndByPassengerorder_id(@Param("passengerOrder_id")Integer passengerorder_id);//设置总订单为到达终点
	public List<vo_PassengerOrder> GetAllEndPassengerOrderByThree(@Param("target_users_id")Integer users_id);//乘客得到完成的订单
	public List<vo_PassengerOrder> GetAllEndPassengerOrderByThreeUnion(@Param("this_users_id")Integer users_id);//乘客主动拼单完成的订单
}
